import matplotlib
import matplotlib.pyplot as plt

matplotlib.rcParams['font.sans-serif'] = ['SimHei']
matplotlib.rcParams['axes.unicode_minus'] = False

# 加载图像
image1 = plt.imread('./img/flowers.jpg')
image2 = plt.imread('./img/scenery.png')

# 创建固定大小的窗口
plt.figure(figsize=(12, 6))

#
plt.subplot(1, 2, 1)
plt.title('花')
plt.axis('off')
plt.imshow(image1)


plt.subplot(1, 2, 2)
plt.title('风景')
plt.axis('off')
plt.imshow(image2)

plt.show()
